# Compile/Link
GCC = gcc
OPTMIZE = -g
LIBS = -lc 

#Objetos
OBJS-1 =  tp1-1.c mapChar.c geradorAutomato.c entradaSaida.c
OBJS-2 =  tp1-2.c

# Nome do aplicativo
APPNAME-1 = tp1-1
APPNAME-2 = tp1-2

# Parametros
PADRAO = casa
ARQUIVO = entrada.txt
	
release : ; $(GCC) $(OPTMIZE) $(LIBS) $(OBJS-1) -o $(APPNAME-1)
	./tp1-1 $(PADRAO)
	$(GCC) $(OPTMIZE) $(LIBS) $(OBJS-2) -o $(APPNAME-2)

clean:
	\rm -rf *.o *.e *.c~ *.h~ *.txt~ makefile~ tp1-2.c
	
run: release
	./tp1-2 $(ARQUIVO)
	


